package com.ruoyi.zyx.domain;

import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 成员基础信对象 zyx_member
 *
 * @author lhs
 * @date 2021-05-25
 */
public class ZyxMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 维修公司id 关联部门表 */
    private Long departid;
    /** 用户表id */
    private Long userid;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 工作单位 */
    @Excel(name = "工作单位")
    private String unit;

    /** 学历 */
    @Excel(name = "学历")
    private String education;

    /** 专业 */
    @Excel(name = "专业")
    private String major;

    /** 职称 */
    @Excel(name = "职称")
    private String position;

    /** 负责科室 */

    private String dutyoffices;

    /** 负责设备 */

    private String dutydevice;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String mobile;

    /** 工作简历 */
    @Excel(name = "工作简历")
    private String resume;

    /** 附录 */
    private String appendix;

    /** 删除标记 */
    private String delFlag;

    private SysDept sysDept;//所属公司

    private List<TreeSelect> dutydevices;

    //统计分析用
    //接单总数
    private Long sumorordernum;
    //维修工单数
    private Long repairordernum;
    //保养工单数
    private Long takecareordernum;
    //检定工单数
    private Long checkordernum;
    //运营工单数
    private Long operateordernum;
    //总工时数
    private Double totaltime;
    //平均维修工时
    private Double averepairtime;
    //平均维修工单费用
    private Double averepaircost;
    //平均运营相关费用
    private Double averoperatecost;
    //办公费用
    private Double officecost;
    //配件工具费用
    private Double toolcost;
    //交通费用
    private Double trafficcost;
    //住宿费用
    private Double staycost;
    //接待费用
    private Double receivecost;
    //其他费用
    private Double othercost;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDepartid(Long departid)
    {
        this.departid = departid;
    }

    public Long getDepartid()
    {
        return departid;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAge(Long age)
    {
        this.age = age;
    }

    public Long getAge()
    {
        return age;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setEducation(String education)
    {
        this.education = education;
    }

    public String getEducation()
    {
        return education;
    }
    public void setMajor(String major)
    {
        this.major = major;
    }

    public String getMajor()
    {
        return major;
    }
    public void setPosition(String position)
    {
        this.position = position;
    }

    public String getPosition()
    {
        return position;
    }
    public void setDutyoffices(String dutyoffices)
    {
        this.dutyoffices = dutyoffices;
    }

    public String getDutyoffices()
    {
        return dutyoffices;
    }
    public void setDutydevice(String dutydevice)
    {
        this.dutydevice = dutydevice;
    }

    public String getDutydevice()
    {
        return dutydevice;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setAppendix(String appendix)
    {
        this.appendix = appendix;
    }

    public String getAppendix()
    {
        return appendix;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departid", getDepartid())
            .append("name", getName())
            .append("age", getAge())
            .append("unit", getUnit())
            .append("education", getEducation())
            .append("major", getMajor())
            .append("position", getPosition())
            .append("dutyoffices", getDutyoffices())
            .append("dutydevice", getDutydevice())
            .append("mobile", getMobile())
            .append("appendix", getAppendix())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
                .append("userid",getUserid())
                .append("resume",getResume())
            .toString();
    }

    public List<TreeSelect> getDutydevices() {
        return dutydevices;
    }

    public void setDutydevices(List<TreeSelect> dutydevices) {
        this.dutydevices = dutydevices;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public SysDept getSysDept() {
        return sysDept;
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public Long getSumorordernum() {
        return sumorordernum;
    }

    public void setSumorordernum(Long sumorordernum) {
        this.sumorordernum = sumorordernum;
    }

    public Long getRepairordernum() {
        return repairordernum;
    }

    public void setRepairordernum(Long repairordernum) {
        this.repairordernum = repairordernum;
    }

    public Long getTakecareordernum() {
        return takecareordernum;
    }

    public void setTakecareordernum(Long takecareordernum) {
        this.takecareordernum = takecareordernum;
    }

    public Long getCheckordernum() {
        return checkordernum;
    }

    public void setCheckordernum(Long checkordernum) {
        this.checkordernum = checkordernum;
    }

    public Long getOperateordernum() {
        return operateordernum;
    }

    public void setOperateordernum(Long operateordernum) {
        this.operateordernum = operateordernum;
    }

    public Double getTotaltime() {
        return totaltime;
    }

    public void setTotaltime(Double totaltime) {
        this.totaltime = totaltime;
    }

    public Double getAverepairtime() {
        return averepairtime;
    }

    public void setAverepairtime(Double averepairtime) {
        this.averepairtime = averepairtime;
    }

    public Double getAverepaircost() {
        return averepaircost;
    }

    public void setAverepaircost(Double averepaircost) {
        this.averepaircost = averepaircost;
    }

    public Double getAveroperatecost() {
        return averoperatecost;
    }

    public void setAveroperatecost(Double averoperatecost) {
        this.averoperatecost = averoperatecost;
    }

    public Double getOfficecost() {
        return officecost;
    }

    public void setOfficecost(Double officecost) {
        this.officecost = officecost;
    }

    public Double getToolcost() {
        return toolcost;
    }

    public void setToolcost(Double toolcost) {
        this.toolcost = toolcost;
    }

    public Double getTrafficcost() {
        return trafficcost;
    }

    public void setTrafficcost(Double trafficcost) {
        this.trafficcost = trafficcost;
    }

    public Double getStaycost() {
        return staycost;
    }

    public void setStaycost(Double staycost) {
        this.staycost = staycost;
    }

    public Double getReceivecost() {
        return receivecost;
    }

    public void setReceivecost(Double receivecost) {
        this.receivecost = receivecost;
    }

    public Double getOthercost() {
        return othercost;
    }

    public void setOthercost(Double othercost) {
        this.othercost = othercost;
    }

    public String getResume() {
        return resume;
    }

    public void setResume(String resume) {
        this.resume = resume;
    }
}
